package com.group01.mapper;

import com.group01.entity.Book;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

@Component
public class BookMapperImpl implements BookMapper {
    @Override
    public List<Book> selectAllbooks() {
        List<Book> books = new ArrayList<>();
        books.add(new Book(1,"西游记","吴承恩","2024-06-10","清华大学出版社"));
        books.add(new Book(2,"水浒传","施耐庵","2024-06-11","清华大学出版社"));
        books.add(new Book(3,"三国演义","罗贯中","2024-06-12","清华大学出版社"));
        return books;
    }
}
